package tests.unit.services.robot

import org.specs2.mutable.Specification
import services.robot.concrete.InvaskSiteNode
import services.robot.Robot

class ShopCrawler extends Specification {
  "ShopCrawler" should {
    "get list of categories" in {
      val siteNode = new InvaskSiteNode("http://invask.ru/cat", "INVASK")
      val robot = new Robot(siteNode)
      robot.run()
      siteNode.categories.size must equalTo(4)
    }
  }
}
